/**
 * createor: zc
 * email: zc8023zs@163.com
 * create_time: 2020/4/6 0:00:57
 */
import request from '@/utils/request'

export function categoryAdd(data) {
  return request({
    url: '/simpleshopsetting/category/add',
    method: 'post',
    data
  })
}

export function categoryUpdate(data) {
  return request({
    url: '/simpleshopsetting/category/update',
    method: 'post',
    data
  })
}

export function categoryDel(data) {
  return request({
    url: '/simpleshopsetting/category/del',
    method: 'post',
    data
  })
}

export function categorySelect(data) {
  return request({
    url: '/simpleshopsetting/category/select',
    method: 'post',
    data
  })
}

export function categorySelectpage(data) {
  return request({
    url: '/simpleshopsetting/category/selectpage',
    method: 'post',
    data
  })
}

export function categorySelecttree(data) {
  return request({
    url: '/simpleshopsetting/category/selecttree',
    method: 'get',
    params:data
  })
}

export function categoryInfo(data) {
  return request({
    url: '/simpleshopsetting/category/info',
    method: 'get',
    params:data
  })
}